const hotSeaTable = document.querySelector('.hotSeaTable');
const delHotSeaForm = document.querySelector('.delHotSeaForm');

hotSeaTable.addEventListener('click', (e) => {
    if (e.target.classList.contains('delHotSeaForm')) {
        console.log('123')
        customConfirm('确定要删除该热搜吗', (result) => {
            if (result) {
                $.ajax({
                    url:'/weibo/manager/deleteHotSearchBlog',
                    data:{
                        id:delHotSeaForm.label.value
                    },
                    success: function (result) {
                        showCustomAlert('删除成功',true)
                    },
                    error: function (error) {
                        showCustomAlert('删除失败',false)
                    },
                });
                setTimeout(() => {
                    location.reload()
                }, 1000);
            }
        });
    }

})